package com.zk.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zk.dao.OrgMapper;
import com.zk.dao.OrganizationMapper;
import com.zk.entity.Org;
import com.zk.entity.Organization;
import com.zk.service.OrganizationService;

@Transactional
@Service("organizationService")
public class OrganizationServiceImpl implements OrganizationService {

	@Resource  
	OrganizationMapper organizationMapper;
	
	@Override
	public void addOrganization(Organization organization) {
		// TODO Auto-generated method stub
		organizationMapper.addOrganization(organization);

	}


	@Override
	public void updateOrganization(Organization organization) {
		// TODO Auto-generated method stub
		organizationMapper.updateOrganization(organization);
		
	}

	@Override
	public void deleteOrganization(Organization organization) {
		// TODO Auto-generated method stub
		organizationMapper.deleteOrganization(organization);
		
	}

	@Override
	public void deleteOrganizationLogic(Organization organization) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public Organization getOrganization(String date) {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public List<Organization> getOrganization(String starttime, String endtime,
			List<String> deptid) {
		// TODO Auto-generated method stub
		return organizationMapper.getOrganization(starttime, endtime, deptid);
	}


	@Override
	public Organization getOrganizationById(String orgid) {
		// TODO Auto-generated method stub
		return organizationMapper.getOrganizationById(orgid);
	}

}
